using System;
using System.Collections.Generic;
using System.Text;

namespace BlogEngine.Core
{
	public class PhotoEffectSettings
	{
		private List<PhotoEffectSetting> _settings = new List<PhotoEffectSetting>();
		private int _order;

		/// <summary>
		/// Gets the order.
		/// </summary>
		/// <value>The order.</value>
		public int Order
		{
			get
			{
				return _order;
			}
		}

		/// <summary>
		/// Gets the settings.
		/// </summary>
		/// <value>The settings.</value>
		public IEnumerable<PhotoEffectSetting> Settings
		{
			get
			{
				foreach (PhotoEffectSetting setting in _settings)
					yield return setting;
			}
		}

		/// <summary>
		/// Gets the count.
		/// </summary>
		/// <value>The count.</value>
		public int Count
		{
			get
			{
				return _settings.Count;
			}
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="PhotoEffectSettings"/> class.
		/// </summary>
		public PhotoEffectSettings()
		{
			_order = 5;
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="PhotoEffectSettings"/> class.
		/// </summary>
		/// <param name="order">The order.</param>
		public PhotoEffectSettings(int order)
		{
			_order = order;
		}

		public void Add(PhotoEffectSetting setting)
		{
			_settings.Add(setting);
		}
	}
}
